import Layout from '@/views/layout/Layout'

const userCentreRouter = {
  path: "/userCenter",
  component: Layout,
  redirect: "/userCenter/userCenter",
  name: "userCenter",
  alwaysShow: true,
  meta: {
    title: "用户中心",
    icon: "userAdmin",
    roles: 'user_center'
  },
  children : [
    {
      path: 'realApprove',
      component: () => import('@/views/userCenter/realApprove/realApprove'),
      name: 'realApprove',
      meta: {
        title: '实名认证',
        roles : 'ucenter_realname_auth'
      }
    },
    {
      path: 'realApprovedetails',
      component: () => import('@/views/userCenter/realApprove/realApprovedetails/realApprovedetails'),
      name: 'realApprovedetails',
      hidden : true,
      meta: {
        title: '实名认证详情',
        roles : 'ucenter_realname_auth'
      }
    },
    {
      path: 'opinion',
      component: () => import('@/views/userCenter/opinion/opinion'),
      name: 'opinion',
      meta: {
        title: '意见反馈',
        roles : 'ucenter_feedback'
      }
    },
    {
      path: 'userList',
      component: () => import('@/views/userCenter/userList/userList'),
      name: 'userList',
      meta: {
        title: '用户列表',
        roles : 'ucenter_account_manager'
      }
    },
    {
      path: 'userDetails',
      component: () => import('@/views/userCenter/userList/userDetails/userDetails'),
      name: 'userDetails',
      hidden : true,
      meta: {
        title: '用户详情',
        roles : 'ucenter_account_manager'
      }
    },
  ]
}
export default userCentreRouter
